package io.github.talelin.latticy.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
@TableName("banner")
public class BannerDO {

    @TableId(type=IdType.AUTO)
    private Long id;
    private String name;
    private String description;
    private String title;
    private String img;

    @JsonIgnore
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonIgnore
    private Date updateTime;

    @JsonIgnore
    // 软删除
    @TableLogic
    private Date deleteTime;


}
